#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QLabel>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QStatusBar*stbar=statusBar();
    //stbar->showMessage("Hello_Qt",2000);
    setStatusBar(stbar);
    QLabel*label=new QLabel("提示信息",this);
    QLabel*label2=new QLabel("右侧提示信息",this);
    stbar->addWidget(label);
    stbar->addPermanentWidget(label2);


}

MainWindow::~MainWindow()
{
    delete ui;
}

